package com.qk.management.controller;

import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.dto.log.LogDTO;
import com.qk.management.service.LogService;
import com.qk.vo.log.LogVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: byLengs
 * @Date: 2025/10/19 20:05
 * @Description:
 */
@RestController
@SuppressWarnings("all")
@RequestMapping("/logs")
public class LogController {

    @Autowired
    private LogService logService;

    @GetMapping
    public Result log(LogDTO dto){
        PageResult<LogVO> pageResult = logService.log(dto);
        return Result.success(pageResult);
    }
}
